<template>
  <div class="KgQA">
    <div class="w">
      <div class="header">
        <div class="title">智能问答</div>
      </div>

      <div class="content">
        <div class="describe" v-html="qaDescribe" />
        <div class="button" @click="goKgQA">
          <div class="in-border">
            <div class="icon-container">
              <i class="el-icon-chat-dot-square unhover"/>
              <i class="el-icon-chat-line-square hover"></i>
            </div>
            <div class="title">智能问答</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "KgQA",
  data() {
    return {
      qaDescribe:
        "&nbsp;&nbsp;&nbsp;&nbsp;智能问答系统是知识图谱的典型应用,通过将自然语言问句转化为三元关系问句,并在知识图谱中进行知识搜索、推理,进而获取所匹配到的知识节点。<br><br>" +
        "&nbsp;&nbsp;&nbsp;&nbsp;在本系统中也提供了一个有关医学知识的智能问答模块,可以进行一些医学知识问答,并绘制关系图谱,对所匹配的知识进行可视化的观察。"
    };
  },
  methods: {
    goKgQA() {
      this.$router.push({path:"/kgQA"});
    }
  }
};
</script>

<style scoped>
.KgQA {
  padding-top: 20px;
  padding-bottom: 30px;
}

.header {
  margin-bottom: 20px;
  height: 50px;
}
.header .title {
  box-sizing: border-box;
  float: left;
  height: 50px;
  line-height: 50px;
  font-size: 20px;
  border-bottom: rgb(217, 236, 255) solid 5px;
}

.content {
  height: 200px;
  width: 1100px;
}
.content .describe {
  box-sizing: border-box;
  float: left;
  margin-right: 50px;
  padding: 30px 20px;
  height: 180px;
  width: 850px;
  border-bottom: rgb(217, 236, 255) solid 5px;
  text-align: left;
}
.content .button {
  box-sizing: border-box;
  float: left;
  padding: 10px;
  height: 200px;
  width: 200px;
  background-color: #409eff;
  border-radius: 5px;
}

.content .button:hover {
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.6);
}
.content .button .in-border {
  box-sizing: border-box;
  height: 180px;
  width: 180px;
  border: #ffffff dashed 2px;
}
.content .button .icon-container {
  margin-top: 20px;
  font-size: 70px;
  color: #ffffff;
}
.content .button .title {
  color: #ffffff;
  font-size: 20px;
}

.content .button:hover .hover,
.content .button .unhover {
  display: inline-block;
}
.content .button .hover,
.content .button:hover .unhover {
  display: none;
}
</style>